package com.sousb;

class AdConfig {
	// mofified before release

	public static final int LOG_LEVEL = Log.VERBOSE; // Log.ERROR when released
	public static final int REFRESH_INTERVAL = 15; // 30 when released
	public static final int MONITOR_INTERVAL = 5; // 5-30 when released
	public static final int CONNECT_TIMEOUT = 5 * 1000; //40
	public static final int READ_TIMEOUT = 5 * 1000; //60

	public static final int MAX_CACHED_APP = 20; // 10-30 when released

	public static final boolean LOG_TO_TEXT = false; // false when released
	public static final boolean JSON_INDENT = false; // false when released
	public static final boolean CACHE_EXT = false; // false when released

	static {
		// release
	}

	public static final String EMPTY = "{empty}";
	public static final String INDEXER_PATH = "/cpro/ui/mads.php";

	// public static final boolean DEBUG_ADS = false;
	public static final int AD_COUNT = 5;
	public static final int MIN_SHOW_TIME = 10 * 1000;
	// public static final int AD_REQ_COUNT = 3; //
	public static final String URL_ENCODING = "utf-8";
	public static final String RES_PREFIX = "__sdk_";
	public static final int RES_CAPBILITY = 1024 * 1024; // 1MB
	public static final String CLKLOG_EXTRA = "&extra=%05x%05x%05x%x,%s";
	public static final String APP_CLKLOG_EXTRA = "&extra=1_%s_%s,%s";
	// "show,%d.click,%d.phone,%d.at,%d.appid,%s.date,%s.dur,%d";

	// field name in request url
	public static final String AD_TITLE = "tit";
	public static final String AD_DESC = "desc";
	public static final String AD_CLICK_URL = "curl";
	public static final String AD_SURL = "surl";
	public static final String AD_CLKLOG_URL = "clklogurl";
	public static final String AD_TYPE = "type";
	public static final String AD_PHONE = "phone";
	public static final String AD_PICURL = "w_picurl";
	public static final String AD_NUM = "n";
	public static final String AD_CONTENT = "ad";
	public static final String AD_TRSP = "trsp";
	public static final String AD_BGC = "bgc";
	public static final String AD_TITC = "titc";
	public static final String AD_STYT = "styt";
	public static final String AD_LOCAL_IMAGE = "limg";
	public static final String AD_FILESIZE = "ad_charge";

	// Lite
	public static final String LITE_SERVER = "http://mobads.baidu.com:80" + INDEXER_PATH;
	public static final String LITE_VERSION = "lite";

	// App
	public static final String DISPATCHER = "http://mpro.baidu.com/ex/dispatch.html";// mpro.baidu.com
	// public static final String DISPATCHER = "file:///sdcard/dispatcher";
	public static final String DISP_URL = "requrl";
	public static final String DISP_TYPE = "type";

	public static void main(String[] args) {
		System.out.println("AdConfig [UT]" + System.currentTimeMillis());
	}

	static int f(int n) {
		if (n < 3) {
			return 1;
		}
		return f(n - 1) + f(n - 3);
	}
}
